package entities;


public abstract class AbstractMoveableEntity extends AbstractEntity implements MoveableEntity{

	protected double dx, dy;
	
	public AbstractMoveableEntity(double x, double y, double width,
			double height) {
		super(x, y, width, height);
		
		this.dx = 0;
		this.dy = 0;
	}
	
	@Override
	public void update(int delta) {
		this.dx += delta * dx;
		this.dy += delta * dy;
	}
	
	public double getDX() {
		return dx;
	}
	public double getDY() {
		return dy;
	}
	public void setDX(double dx)
	{
		this.dx = dx;
	}
	public void setDY(double dy)
	{
		this.dy = dy;
	}

}
